package com.daoeping.action;

import com.daoeping.domain.OtherData;
import com.daoeping.domain.Usr_user;
import com.daoeping.service.UserService;
import com.opensymphony.xwork2.ActionSupport;

public class UserAction extends ActionSupport {

	/**
	 * 
	 */
	private static final long serialVersionUID = -658684735612518771L;
	private Usr_user user;
	private UserService userService;
	private OtherData otherData;

	public OtherData getOtherData() {
		return otherData;
	}

	public void setOtherData(OtherData otherData) {
		this.otherData = otherData;
	}

	public Usr_user getUser() {
		return user;
	}

	public void setUser(Usr_user user) {
		this.user = user;
	}

	public UserService getUserService() {
		return userService;
	}

	public void setUserService(UserService userService) {
		this.userService = userService;
	}

	public String addPUser() {
		if(userService.addUser(user)){
			return "addpuser";
		}else{
			return "exception";
		}
		
	}

}
